package com.作业.Day17;

public class Homework1 {
    public static void main(String[] args) {
        Thread1 thread1 = new Thread1();
        Thread1 thread2 = new Thread1();
                 thread2.start();
                 thread1.start();
    }
}
class Thread1 extends Thread{
    @Override
    public void run() {
       for(int i=1;i<=20;i++){
           System.out.println(i+".你好,来自线程Thread-"+getId());

       }
    }
}